#include <allegro.h>
#include "general.h"

void chargement (codo *c,Money *m,Etoile *e,Monster *o,Monster *o1,Monster *o2,kartouche *k,power *w,Ball *b)
{
w->pm[0]=load_bitmap("./img/pm0.bmp", NULL);
w->pm[1]=load_bitmap("./img/pm1.bmp", NULL);
w->pm[2]=load_bitmap("./img/pm2.bmp", NULL);
w->pm[3]=load_bitmap("./img/pm3.bmp", NULL);
w->pm[4]=load_bitmap("./img/pm4.bmp", NULL);
w->pm[5]=load_bitmap("./img/pm5.bmp", NULL);
w->pm[6]=load_bitmap("./img/pm6.bmp", NULL);
w->pm[7]=load_bitmap("./img/pm7.bmp", NULL);
w->pm[8]=load_bitmap("./img/pm8.bmp", NULL);

o1->tab_d[0]=load_bitmap("./img/monster8.bmp", NULL);
o1->tab_g[0]=load_bitmap("./img/1monster8.bmp", NULL);

o->tab_d[0]=load_bitmap("./img/right.bmp", NULL);
o->tab_g[0]=load_bitmap("./img/left.bmp", NULL);

o2->tab_d[0]=load_bitmap("./img/monster11.bmp", NULL);
o2->tab_g[0]=load_bitmap("./img/1monster11.bmp", NULL);

c->tab_d[0]=load_bitmap("./img/right0.bmp", NULL);
c->tab_d[1]=load_bitmap("./img/right1.bmp", NULL);
c->tab_d[2]=load_bitmap("./img/right2.bmp", NULL);

c->tab_g[0]=load_bitmap("./img/left0.bmp", NULL);
c->tab_g[1]=load_bitmap("./img/left1.bmp", NULL);
c->tab_g[2]=load_bitmap("./img/left2.bmp", NULL);

m->money= load_bitmap("./img/money.bmp", NULL);
e->etoile= load_bitmap("./img/etoile.bmp", NULL);

k->tab_d[0]= load_bitmap("./img/kartouche.bmp", NULL);

b->tab_d[0]=load_bitmap("./img/ball.bmp", NULL);

//c->gameover=load_bitmap("./img/gameover.bmp", NULL);
}




